package com.salton123.groupbargain.ui.fm

import android.content.Context
import android.content.Intent
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import androidx.appcompat.widget.Toolbar
import com.salton123.groupbargain.R
import com.salton123.ui.base.BaseActivity

/**
 * User: newSalton@outlook.com
 * Date: 2020-02-09 19:18
 * ModifyTime: 19:18
 * Description:
 */
class PublishMissionStepOneActivity : BaseActivity() {
    companion object {
        fun start(context: Context) {
            val intent = Intent(context, PublishMissionStepOneActivity::class.java)
            context.startActivity(intent)
        }

    }

    override fun getLayout(): Int = R.layout.aty_publish_mission_step_one

    override fun initVariable(savedInstanceState: Bundle?) {

    }

    override fun initViewAndData() {

    }

    private lateinit var tool_bar: Toolbar

    override fun initListener() {
        super.initListener()
        val view = LayoutInflater.from(activity()).inflate(R.layout.publish_mission_title, null)
        asynTitleBar(view)
        tool_bar = view.findViewById<Toolbar>(R.id.tool_bar)
        setSupportActionBar(tool_bar)
        tool_bar.setNavigationOnClickListener { finish() }
        tool_bar.title = ""
    }

    override fun onClick(v: View?) {
        super.onClick(v)
        when (v) {
            tool_bar -> {

            }
        }
    }

    override fun isOpenTitleBar(): Boolean {
        return false
    }
}